package com.hzncc.flowable_diboot.project_contracts.vo;

import com.diboot.core.binding.annotation.*;
import com.diboot.core.vo.FileVO;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamOrg;
import com.diboot.iam.entity.IamPosition;
import com.diboot.iam.entity.IamRole;
import com.diboot.iam.entity.IamUser;
import com.diboot.file.entity.FileRecord;
import com.diboot.tenant.entity.IamTenant;
import com.hzncc.flowable_diboot.project_contracts.entity.ProjectContractAmount;
import com.hzncc.flowable_diboot.project_contracts.entity.ProjectContractAudit;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;
/**
* 项目类合同金额 VO定义
* @author MyName
* @version 1.0
* @date 2024-09-24
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class ProjectContractAmountListVO extends ProjectContractAmount  {
private static final long serialVersionUID = 1472050872672924442L;
    /**
    * 付款方式 关联字典选项
    */
    @BindDict(
    type = "projectContractPayMethod",
    field = "payMehtod"
    )
    private LabelValue payMehtodLabel;

    /**
    * 约定交货期 关联字典选项
    */
    @BindDict(
    type = "agreedDeliveryTime",
    field = "agreedDeliveryTime"
    )
    private LabelValue agreedDeliveryTimeLabel;

    /**
    * 质保期 关联字典选项
    */
    @BindDict(
    type = "wrrantyPeriod",
    field = "warrantyPeriod"
    )
    private LabelValue warrantyPeriodLabel;

    /**
    * 项目类合同Id 关联信息
    */

    @BindField(
        entity = ProjectContractAudit.class,
        field = "contractCode",
        condition = "this.contract_id = id"
     )
    private String contractIdLabel;

    /**
    * 创建人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.create_by = id"
     )
    private String createByLabel;

    /**
    * 更新人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.update_by = id"
     )
    private String updateByLabel;

}